package com.ehome.poct.base.dao.account.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ehome.mybatisplus.autoconfigure.BaseEntityOld;
import lombok.Data;

import java.math.BigDecimal;

/**
    * 终端代理（合伙人）账户表
    */
@Data
@TableName(value = "term_agent_account")
public class TermAgentAccountDO extends BaseEntityOld<TermAgentAccountDO> {
    /**
     * 账户主键ID
     */
    @TableId(value = "term_agent_account_id")
    private Long termAgentAccountId;

    /**
     * 合伙人id
     */
    @TableField(value = "term_agent_id")
    private Long termAgentId;

    /**
     * 身份证
     */
    @TableField(value = "identity_card")
    private String identityCard;

    /**
     * 实名
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 身份证正面
     */
    @TableField(value = "identity_card_f")
    private String identityCardF;

    /**
     * 身份证反面
     */
    @TableField(value = "identity_card_b")
    private String identityCardB;

    /**
     * 提现密码
     */
    @TableField(value = "withdrawal_pwd")
    private String withdrawalPwd;

    /**
     * 6位随机字符串,加密用到。
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 加密的用户余额内容，积分内容
     */
    @TableField(value = "encrypt_data")
    private byte[] encryptData;

    /**
     * 总余额（可用余额+ 冻结余额）
     */
    @TableField(value = "balance")
    private BigDecimal balance;

    /**
     * 冻结余额
     */
    @TableField(value = "freeze_balance")
    private BigDecimal freezeBalance;

    /**
     * 可提现余额
     */
    @TableField(value = "available_balance")
    private BigDecimal availableBalance;
}